<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
    <meta name="viewport" content="width=device-width">
    <title>from</title>
</head>
<body>
	<h1>from</h1>
</body>
<script type="text/javascript">
    var arrFrom = Array.from([1, 2, 3], x => x * 10);
    console.log('arrFrom',arrFrom)

    const genNumArr = (length, limit) =>
    Array.from({ length }, _ => Math.floor(Math.random() * limit));

    const data=genNumArr(10, 100);
    console.log('data',data)
</script>
</html>